package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.entity.vo.BorrowerApprovalVo;
import com.atguigu.srb.core.pojo.entity.vo.BorrowerVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2024-10-11
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowrVO(BorrowerVO borrowerVO, String token);

    void listBorrowerByKey(Page<Borrower> page, String key);

    BorrowerVO queryBorrowerVoById(Long id);

    void approval(BorrowerApprovalVo borrowerApprovalVo);

    BorrowerVO queryBorrowerVoByUserId(Long userId);
}
